@use './globalValues';
@use './bangPanel.scss';
@use './itemIntro.scss';
@use './saveList.scss';
@use '../components/sidebars/configs/shared/configSection.scss';
@use '../components/sidebars/options/shared/options.scss';
@use '../components/sidebars/sideList/shared/arrangableList.scss';

*{
    margin: 0px;
    padding: 0px;
    transition: globalValues.$default-transition-time;
}
body{
    background-color: white;
}

.sqrBtn{
    width: 30px;
    height: 30px;
    border-radius: 5px;
    background-color: #eee;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    user-select: none;
    &:hover{
        background-color: #ccc;
    }
    &.sqrActive{
        box-shadow: 0px 0px 5px 0px #000;
    }
}

.withShadow{
    box-shadow: 0px 0px 5px 0px #000;
}

h1{
    font-size: 22px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    padding-top: 20px;
    border-bottom: 2px solid #aaa;
    color: #666;
    letter-spacing: 0.1em;
    font-weight: normal;
}
h1.h1WithBtns{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 20px;
    div{
        display: flex;
        align-items: center;
        button{
            font-size: 18px;
        }
        button.lite{
            font-size: 14px;
        }
        input{
            font-size: 18px;
        }
    }
    div.searchControl{
        input{
            width: 160px;
        }
    }
    @media screen and (max-width:500px) {
        div.searchControl{
            flex-direction: column;
            align-items: flex-end;
        }   
    }
}


a{
    color: #666;
    text-decoration: none;
    cursor: pointer;
    &:hover {
        color: black;
        text-decoration: underline;
    }
}

table td {
    padding: 5px;
    background-color: #eee;
    text-align: center;
}
table.index tr:hover td{
    background-color: #ddd;
}
table.index td{
    min-width: 80px;
}
table th{
    background-color: cornflowerblue;
    color:white;
    padding: 5px;
}
table tr.noBg td{
    background:none;
}
table.fullWidth{
    width: 100%;
}
.wideTableContainer{
    overflow-x: scroll;
}

input, textarea {
    width: 200px;
    font-size: unset;
    font-family: unset;
    resize: none;
    margin: 5px;
    padding: 3px;
    border: 1px solid #aaa;
    box-sizing: border-box;
    border-radius: 5px;
}
input[type=file]{
    width: 200px;
    background-color: white;
}
input[type=checkbox]{
    height: 1.5em;
    width: 1.5em;
}
input[type=range]{
    width: 120px;
}
input[type=radio]{
    width: unset;
}
select {
    font-size: 18px;
    padding: 3px;
    vertical-align: middle;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: 5px;
}

button {
    background-color: cornflowerblue;
    color: white;
    padding: 5px;
    margin: 2px;
    border-radius: 5px;
    border: none;
    font-size: unset;
    margin-bottom: 2px;
    transition: 0.4s;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    &:hover{
      background-color:rgb(0, 49, 139);
    }
}
button.confirm {
    background-color: cornflowerblue;
}
button.confirm:hover{
    background-color:rgb(0, 49, 139);
}
button.ok{
    background-color: olivedrab;
}
button.ok:hover{
    background-color: green;
}
button.queryAdjust{
    border: none;
    background: none;
    color:white;
    margin: 0px;
}
button.minor{
    background-color: white;
    border:2px solid #aaa;
    padding: 3px;
    color:#aaa;
}
button.minor:hover{
    color:black;
    border-color: black;
}
button.cancel{
    background-color:plum
}
button.cancel:hover{
    background-color:palevioletred
}
button.danger{
    background-color: red;
}
button.danger:hover{
    background-color: darkred;
}
button.off{
    background-color: #999;
}
button.off:hover{
    background-color: #666;
}
button.lite{
    background-color: transparent;
    border: none;
    color:#666;
    padding: 0px;
    margin: 0px;
    &:hover{
      text-decoration: underline;
    }
}

hr{
    margin: 20px 0px 20px 0px;
    color: #ccc;
}
.dangerZone{
    background-color: rgb(255, 219, 225);
    border-radius: 10px;
    border: 2px solid white;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px;
    padding: 10px;
    gap: 8px;
}
.smallNote{
    color: #666;
    font-size: 12px;
}
.smallNoteVital{
    color: plum;
    font-size: 12px;
}
.mediumNote{
    color: #666;
    font-size: 14px;
}
.mediumNoteVital{
    color: red;
    font-size: 14px;
}

.statusDisplay{
    z-index: 999;
    position: fixed;
    bottom: 15px;
    left: 0px;
    right: 0px;
    width: fit-content;
    margin: auto;
    text-align: center;
    color: black;
    padding: 3px;
    border-radius: 3px;
    background-color: white;
    font-weight: bold;
    box-shadow: 0px 0px 10px 3px black;
}

.nowrapEllipsis{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}